// UserService.java
package com.bcu.cn.onlineexamsystem.user.service;

import com.bcu.cn.onlineexamsystem.user.entity.User;

public interface UserService {
    User login(String userId, String password);

    boolean register(User user); // 新增注册方法

    User getUserById(String userId);

    boolean updateContactInfo(String userId, String email, String phone);

    java.util.List<java.util.Map<String, Object>> getCoursesByTeacherId(String teacherId);
    java.util.List<java.util.Map<String, Object>> getClassesByTeacherId(String teacherId);
}

